#ifndef _CONFIG_H_
#define _CONFIG_H_

#include <string>

using namespace std;

class ConfigDB
{
public:
	string name;
	string server;
	string user;
	string passwd;
	int port;
};

class ConfigMemcache
{
public:
	string server;
	int port;
	int db_port;
};

class ConfigGame
{
public:
    int protocol;
    int version;
    int game_id;
    int server_type;
    int server_id;
};

class Configuration
{
public:
	static ConfigDB db;
	static ConfigMemcache mmc;
	static ConfigGame game;

	static string config_file;

public:
	static int Init(char *config_file_name);
};

#endif
